#!/bin/bash
# version: 1.0 LNMP
# Q     Q: 718349985
# EMAIL  : szpengjian@gmail.com
#
#
if [ $1 == 'lnmp' ] 
then
	sudo apt-get update -y
	sudo apt-get install vim -y
	sudo apt-get install git -y
	sudo apt-get install nginx -y
	sudo apt-get install php -y
	sudo apt-get install php7.0-mbstring -y
	sudo apt-get install php7.0-gd -y
	sudo apt-get install php7.0-bcmath -y
	sudo apt-get install php7.0-curl -y
	sudo apt-get install php7.0-dom -y
	sudo apt-get install php-mysql -y
   	sudo apt-get install php-redis -y   
	sudo apt-get install php-mongodb -y
	sudo apt-get install php-memcache -y
	sudo apt-get install php-memcached- y
	sudo apt-get install mysql-server -y
	sudo apt-get install redis-server -y
	sudo apt-get install memcached -y
	sudo apt-get install mongodb-server -y
	sudo apt-get install composer -y
	composer config -g repo.packagist composer https://packagist.phpcomposer.com
	sudo mkdir /home/wwwroot/
	sudo chown monda:monda /home/wwwroot/ -R
	cd /home/wwwroot
	composer create-project --prefer-dist laravel/laravel www.shop.com
else
	echo "error $1";
fi


